/*************************************** *******************************
*
* Filename: main. c
*
* Description: A simple test program for the CRC implementations.
*
* Notes: To test a different CRC standard, modify crc. h.
*
*
* Copyright (c) 2000
CRC verification is often used in communications.
Here I will forward the CRC-16 code.
However, I recommend an open-source software fsum frontend for generating various verification codes.
Its open source project URL is:
CRC program design purpose: by writing a CRC verification program, we can deepen our understanding of the CRC principle. At the same time, we can learn how to apply the Principles in books to the actual situation, so that we can learn more quickly.
Python module installation, serial port operation, byte conversion, EXE generation, CRC calculationBackground: For the first time, use Python to make gadgets, installed version 2.7.9 python;1.pycharm license registration problem with License server,
How this CRC 16 Java code conversion to PHP, their own PHP to the code is not
$str 2= ' Aqebaqeb ';
$str 2=base64_decode ($str 2);
Java code
public static int CRC16 (final byte[] buffer) {int CRC = 0xffff;for (int i = 0; i > 8) | (CRC > 4),
Phpcrc32 calculates the 32-bit CRC (cyclic redundancy check) and crc32crc of the string. Phpcrc32 calculates the 32-bit CRC of a string (cyclic redundancy check) and crc32crc. note: in this document, the www.manongjc.comarticle499.html phpcrc32
Instance
Results of output CRC32 ():
Definition and usage
The CRC32 () function computes a 32-bit CRC (cyclic redundancy check) for a string.
This function can be used to verify the integrity of the data.
Tip: To ensure that you can get the correct
: This article mainly introduces the 32-bit CRC (cyclic redundancy check) of the phpcrc32 string. if you are interested in the PHP Tutorial, refer to it. Note: This article reprinted http://www.manongjc.com/article/499.html
The php crc32 function
Php crc32 calculates the 32-bit CRC (cyclic redundancy check) and crc32crc of the string.
Note: This article reprinted http://www.manongjc.com/article/499.html
The php crc32 function is used to generate a 32-bit Cyclic Redundancy checkcode
Note: This article reprinted http://www.manongjc.com/article/499.html
The PHP crc32 function is used to generate a string of 32-bit cyclic redundancy check code polynomial. This is typically used to check the integrity of the data being transmitted.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.